import java.util.Scanner;

public class Main1661 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int c=sc.nextInt();
        int b=sc.nextInt();
        int a=sc.nextInt();
        if (a>=165&&a<=185&&b>=50&&b<=80&&c>=16&&c<=19){
            System.out.println("Y");
        }else
            System.out.println("N");


    }
}
